home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / interfac / it.dig / scripts / DefineButton2_278 / BUTTONCONDACTION on(release).as
Text File  |  2010-11-09  |  1KB  |  31 lines

  1. on(release){
  2.    if(_root.descri.comando.text == "shellopen")
  3.    {
  4.       _root.descri.instalar_mc.gotoAndStop("Abrir");
  5.       getURL("FSCommand:SHELLOPEN","%org%" + this.caminho.text);
  6.    }
  7.    else if(_root.descri.comando.text == "LINK")
  8.    {
  9.       _root.descri.instalar_mc.gotoAndStop("URL");
  10.       getURL(this.caminho.text,"");
  11.    }
  12.    else if(_root.descri.comando.text == "PDF")
  13.    {
  14.       _root.descri.instalar_mc.gotoAndStop("PDF");
  15.       getUrl("FSCommand:Browser.SetPos", "1,77");
  16.       getUrl("FSCommand:Browser.SetSize", "790,453");
  17.       getURL("FSCommand:Browser.SetURL",_level0.startdir + this.caminho.text);
  18.       fscommand("Browser.Open");
  19.    }
  20.    else if(_root.descri.comando.text == "EXECUTAR")
  21.    {
  22.       _root.descri.instalar_mc.gotoAndStop("EXECUTAR");
  23.       getURL("FSCommand:Run.app","%org%" + this.caminho.text);
  24.    }
  25.    else
  26.    {
  27.       _root.descri.instalar_mc.gotoAndStop("INSTALAR");
  28.       getURL("FSCommand:RUN.APP","%org%" + this.caminho.text);
  29.    }
  30. }
  31.